{include file="Public:header" /}
<div class="page page-current" id="router1">
	<div class="bar bar-nav">
		<h1 class="title">答题</h1>
		<i class="icon icon-left" onclick="window.location.href='{:U('Index/index')}'"></i>
	</div>
	<div class="content answer">
		<div class="content-block-title text-center">
			<img src="__PUBLIC__/Home/activity/img/answer_png.png">
		</div>
		<div class="content-block-inner" >
			<a href="{:U('Answer/answer_test#router2')}" class="button button-fill">赛前练习</a>
			{if condition="$true_status eq 1 AND $chance eq 1"}
				<a href="{:U('Answer/answer_true#router2')}" class="button button-fill">正式答题</a>
			{elseif condition="$true_status eq 1 AND $chance eq -1" /}
				<a onclick="message('你今天答题次题已达{$every_day_num}次上限！')" class="button button-fill">正式答题</a>
			{else /}
				<a href="{:U('Answer/answer_true_form')}" class="button button-fill">正式答题</a>
			{/if}
		</div>
	</div>
</div>
</body>
</html>
<link rel="stylesheet" href="__PUBLIC__/Home/layer_mobile/need/layer.css"/>
<script type="text/javascript" src="__PUBLIC__/Home/layer_mobile/layer.js"></script>
<script>
    //提示
    function message(msg) {
        layer.open({
            content: msg,
            skin: 'msg',
            time: 3 //2秒后自动关闭
        });
    }
</script>